package cc.vicp.djx314.starfood.domain.dish;

import java.io.Serializable;
import java.sql.Time;

/**
 * 显示菜式的提供时间
 * @author 水山清风
 *
 */
public class ProvideTime implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7044111594786301344L;
	//~属性=====================================================================
	/**
	 * 自增主键
	 */
	private Integer id;
	/**
	 * 一个时间段开始供应该菜式的时间
	 */
	private Time startTime;
	/**
	 * 一个时间段结束供应该菜式的时间
	 */
	private Time endTime;
	/**
	 * 该时间段的星期数，1代表星期一
	 */
	private Integer dayOfWeek;

	//~构造函数=====================================================================
	/**
	 * 默认构造函数
	 */
	public ProvideTime() {
	}
	public ProvideTime(Integer id, Time startTime, Time endTime,
			Integer dayOfWeek) {
		super();
		this.id = id;
		this.startTime = startTime;
		this.endTime = endTime;
		this.dayOfWeek = dayOfWeek;
	}

	//~getter和setter=====================================================================
	/**
	 * 获得id
	 * @return
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置id
	 * @param id
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获得startTime
	 * @return
	 */
	public Time getStartTime() {
		return startTime;
	}
	/**
	 * 设置startTime
	 * @param startTime
	 */
	public void setStartTime(Time startTime) {
		this.startTime = startTime;
	}
	/**
	 * 获得endTime
	 * @return
	 */
	public Time getEndTime() {
		return endTime;
	}
	/**
	 * 设置endTime
	 * @param endTime
	 */
	public void setEndTime(Time endTime) {
		this.endTime = endTime;
	}
	/**
	 * 获得dayOfWeek
	 * @return
	 */
	public Integer getDayOfWeek() {
		return dayOfWeek;
	}
	/**
	 * 设置dayOfWeek
	 * @param dayOfWeek
	 */
	public void setDayOfWeek(Integer dayOfWeek) {
		this.dayOfWeek = dayOfWeek;
	}
}
